#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QList>
#include <QPair>

class QTextBrowser;
class QPushButton;
class QComboBox;
class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = 0);
    ~Widget();

private slots:
    void startSyncFiles();

private:
    void initUI();
    void updateDisplayUser();
    void getAllUser();

private:
    using UserInfo = QPair<QString, QString>;
    QTextBrowser *m_syncInfoBr;
    QPushButton *m_syncBt;
    QComboBox *m_srcUserBox;
    QList<UserInfo> m_allUserInfo;
};

#endif // WIDGET_H
